<?php if(!defined('BASEPATH')) exit ('No direct script access allowed');

/**---------------------------
* Giahuy
* @category		Home controller extends Public_Controller
* @Author		Nguyen Duc Hung - tinapc@gmail.com
* @Date			6/8/2012
* @Version		v1.0
-----------------------------*/


class Home extends public_controller
{

    function __construct()
    {
        parent::__construct();
		$this->load->library('fb_api/facebook', array("appId" => $this->config->item('appId') , "secret" => $this->config->item('secret')));
       if(!$this->session->userdata('loginStatus')) redirect('landing');
    }

    function index()
    {		
    	
    	$this->template->title('Death project')
    		->build('default/index');
    }

}
/* End of file home.php */
/* Local: ./application/controllers/home.php */